package com.zhanglu.fun.services.authentication;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author zhanglu
 */
@SpringBootApplication //(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
// exclude后面加上，是为了避免启动之后数据库造成失败，这个项目不需要数据库，所以过滤掉数据源
@EnableEurekaClient // 启动EnableEureka客户端
@EnableFeignClients//(basePackages = { "com.zhanglu.fun.feignclient" }) // 启动feign,扫描下面所有客户端
@EnableScheduling
@EnableSwagger2
public class Boot {
    public static void main(String[] args) throws Exception {
        SpringApplication.run(Boot.class, args);
    }
}
